package com.mm.cloud.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mm.cloud.common.core.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * <p>
 * 用户基础信息
 * </p>
 *
 * @author mm
 * @since 2024-05-24
 */
@Getter
@Setter
@TableName("mm_user")
@Schema(name = "User", description = "用户基础信息")
public class User extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "真实姓名")
    private String realName;

    @Schema(description = "公司ID")
    private Long companyId;

    @Schema(description = "管理员 admin")
    private String isAdmin;
}
